﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="get_test.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Certificate.get_test" %>

<%@ Import Namespace="DataAccess" %>
<%@ Import Namespace="System.Linq" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<body>
    <% 
        int cer = int.Parse(Request.QueryString["cer"]);
        var get_test = from p in new TblTestController().FetchAll() orderby p.TestTitle ascending where p.TestCertificate == cer select p;
        
        foreach(TblTest test in get_test)
        {
        %>
    <li id="test<%=test.TestId %>" class="test testlinks w3-hover-teal"><%=test.TestTitle %><div class="w3-hide test_id"><%=test.TestId %></div></li>
    <%} %>
</body>
</html>
